package com.jiedeng.dao;

import com.jiedeng.model.SysMessage;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by qinyu on 2018/1/29.
 */
public interface ISysMessageRepository extends JpaRepository<SysMessage, Long> {

    List<SysMessage> findByPeopleid(Long pid);
    List<SysMessage> findByPeopleidOrderByTimeDesc(Long pid);

    List<SysMessage> findByParamsLike(String parms);
}
